//
//  LSQTableViewCell.m
//  Style
//
//  Created by dllo on 15/10/6.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "LSQTableViewCell.h"

@implementation LSQTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        self.imageViePic = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imageViePic];
        
    }
    return self;
}


-(void)layoutSubviews
{

    [super layoutSubviews];
    
    self.imageViePic.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width,[UIScreen mainScreen].bounds.size.height);
    
    
    /*自适应高度*/
    self.imageViePic.contentMode = UIViewContentModeScaleAspectFit;
    self.imageViePic.autoresizesSubviews = YES;
    self.imageViePic.autoresizingMask =
    UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleHeight ;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
